ต วอย างการสร างฟอร ม เมน การใช งาน

Size: px
Start display at page:

Download "ต วอย างการสร างฟอร ม เมน การใช งาน"

Transcription

1 ต วอย างการสร างฟอร ม เมน การใช งาน Option Explicit Dim conn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim Sql As String Private Sub Command6_Click() Form2.Hide Form3.Show Private Sub Command7_Click() Form2.Hide Form4.Show

2 Private Sub Form_Load() conn.open "provider =microsoft.jet.oledb.4.0;data source=" & App.Path & "\m5.mdb" MsgBox "µô µèí Ѻ Ò¹ éíáùåä éáåéç ÃѺ" Gridshow Private Sub Command1_Click() Txt1 = "" Txt2 = "" Combo1 = "" Combo2 = "" Combo3 = "" Combo4 = "" Combo5 = "" Txt3 = "" Txt4 = "" Private Sub Command2_Click() If (Txt1.Text = "") Then MsgBox "Please Key ID-Code", vbokonly, "Warning" Txt1.SetFocus If (Txt2.Text = "") Then MsgBox "Please Key Game Name", vbokonly, "Warning" Txt2.SetFocus

3 If (Combo1.Text = "") Then MsgBox "Please Select Disc Zone", vbokonly, "Warning" Combo1.SetFocus If (Combo2.Text = "") Then MsgBox "Please Select Language", vbokonly, "Warning" Combo2.SetFocus If (Combo3.Text = "") Then MsgBox "Please Select in Stock", vbokonly, "Warning" Combo3.SetFocus If (Combo4.Text = "") Then MsgBox "Please Select Game Console", vbokonly, "Warning" Combo4.SetFocus If (Combo5.Text = "") Then MsgBox "Please Select Rate", vbokonly, "Warning" Combo5.SetFocus If (Txt3.Text = "") Then

4 MsgBox "Please Key Made by", vbokonly, "Warning" Txt3.SetFocus If (Txt4.Text = "") Then MsgBox "Please Key Price", vbokonly, "Warning" Txt4.SetFocus conn.open "provider =microsoft.jet.oledb.4.0;data source=" & App.Path & "\m5.mdb" Sql = "select * from student5 where stdid = '" & Txt1 & "'" rs.open Sql, conn, 3, 3 If rs.recordcount > 0 Then MsgBox "ÁÕ éíáùåµòáãëñê¹õéáåéç", vbok + vbexclamation, "á é ൠ͹" Else conn.open "provider =microsoft.jet.oledb.4.0;data source=" & App.Path & "\m5.mdb" Sql = "insert into student5 values('" & Txt1 & "','" & Txt2 & "','" & Combo1 & "', '" & Combo2 & "','" & Combo3 & "','" & Combo4 & "','" & Combo5 & "','" & Txt3 & "','" & Txt4 & "')" rs.open Sql, conn, 3, 3 MsgBox "ºÑ¹ Ö éíáùåáåéç", vbok + vbinformation, " ¹Âѹ" Gridshow Private Sub Command3_Click() conn.open "provider =microsoft.jet.oledb.4.0;data source=" & App.Path & "\m5.mdb"

5 Sql = "delete * from student5 where stdid = '" & Txt1 & "'" rs.open Sql, conn, 3, 3 MsgBox "ź éíáùå¹õéáåéç", vbok + vbinformation, " ¹Âѹ" Gridshow Private Sub Command4_Click() conn.open "provider =microsoft.jet.oledb.4.0;data source=" & App.Path & "\m5.mdb" Sql = "update student5 set stdf='" & Txt2 & "', stdname='" & Combo1 & "', stdsur='" & Combo2 & "', stdaddress='" & Combo3 & "', stdamp='" & Combo4 & "', stdpro='" & Combo5 & "', stdtel='" & Txt3 & "', std ='" & Txt4 & "'where stdid='" & Txt1 & "'" rs.open Sql, conn, 3, 3 MsgBox "»ÃѺ»ÃØ Ò¹ éíáùå¹õéáåéç", vbok + vbinformation, " ¹Âѹ" Gridshow Private Sub Command5_Click() If MsgBox(" سµéÍ ÒÃÍÍ Ò â»ãá ÃÁãªéËà ÍäÁè", vbokcancel + vbinformation, " ¹Âѹ") = vbok Then Unload Me Sub Gridshow() With Me.Combo1.AddItem "Z1".AddItem "Z2".AddItem "Z3".AddItem "No Zone".ListIndex = 0

6 With Me.Combo2.AddItem "English".AddItem "Japanese".ListIndex = 0 With Me.Combo3.AddItem "1".AddItem "2".AddItem "3".AddItem "4".AddItem "5".AddItem "6".AddItem "7".AddItem "8".AddItem "9".AddItem "10".ListIndex = 0 With Me.Combo4.AddItem "Ps3".AddItem "Xbox360".ListIndex = 0 With Me.Combo5.AddItem "1".AddItem "1.5".AddItem "2"

7 .AddItem "2.5".AddItem "3".AddItem "3.5".AddItem "4".AddItem "4.5".AddItem "5".AddItem "5.5".AddItem "6".AddItem "6.5".AddItem "7".AddItem "7.5".AddItem "8".AddItem "8.5".AddItem "9".AddItem "9.5".AddItem "10".ListIndex = 0 Dim i As Integer With Grid1.Cols = 10.Rows = 1.ColWidth(0) = 300.ColWidth(1) = 770.ColWidth(2) = 2800.ColWidth(3) = 1000.ColWidth(4) = 1000

8 .ColWidth(5) = 800.ColWidth(6) = 1200.ColWidth(7) = 550.ColWidth(8) = 1300.ColWidth(9) = 500.ColAlignment(0) = 9.ColAlignment(1) = 9.TextMatrix(0, 0) = "No".TextMatrix(0, 1) = "ID-Code".TextMatrix(0, 2) = "Game Name".TextMatrix(0, 3) = "Disc Zone".TextMatrix(0, 4) = "Language".TextMatrix(0, 5) = "In Stock".TextMatrix(0, 6) = "Game Console".TextMatrix(0, 7) = "Rate".TextMatrix(0, 8) = "Made by".textmatrix(0, 9) = "Price" conn.open "provider =microsoft.jet.oledb.4.0;data source=" & App.Path & "\m5.mdb" Sql = "select * from student5 order by stdid" rs.open Sql, conn, 3, 3 i = 1 If rs.recordcount <> 0 Then Do Until rs.eof.rows =.Rows + 1.TextMatrix(i, 0) = i.textmatrix(i, 1) = rs("stdid") & ""

9 .TextMatrix(i, 2) = rs("stdf") & "".TextMatrix(i, 3) = rs("stdname") & "".TextMatrix(i, 4) = rs("stdsur") & "".TextMatrix(i, 5) = rs("stdaddress") & "".TextMatrix(i, 6) = rs("stdamp") & "".TextMatrix(i, 7) = rs("stdpro") & "".TextMatrix(i, 8) = rs("stdtel") & "".TextMatrix(i, 9) = rs("std ") & "" i = i + 1 rs.movenext Loop Else MsgBox "äáèáõáõ éíáùå", vbok + vbinformation, "á é ൠ͹".Rows = 1 rs.close Sub reload() With Grid1 Txt1 =.TextMatrix(.Row, 1) conn.open "provider=microsoft.jet.oledb.4.0;data source=" & App.Path & "\m5.mdb" Sql = "select * from student5 where stdid='" & Txt1 & "'" rs.open Sql, conn, 3, 3 If rs.recordcount > 0 Then Txt2 = rs("stdf") & ""

10 Combo1 = rs("stdname") & "" Combo2 = rs("stdsur") & "" Combo3 = rs("stdaddress") & "" Combo4 = rs("stdamp") & "" Combo5 = rs("stdpro") & "" Txt3 = rs("stdtel") & "" Txt4 = rs("std ") & "" Private Sub Grid1_Click() reload Private Sub Txt1_KeyPress(KeyAscii As Integer) If (KeyAscii >= 48) And (KeyAscii <= 57) Or (KeyAscii = 46) Or (KeyAscii = 8) Then Else Txt2.SetFocus Else MsgBox "ÃкØä éà ¾ÒеÑÇàÅ (0-9)", vbokonly, "á é ൠ͹" KeyAscii = 0 Txt1.SetFocus Private Sub Txt2_KeyPress(KeyAscii As Integer)

11 Combo1.SetFocus Private Sub Combo1_KeyPress(KeyAscii As Integer) Combo2.SetFocus Private Sub Combo2_KeyPress(KeyAscii As Integer) Combo3.SetFocus Private Sub Combo3_KeyPress(KeyAscii As Integer) Combo4.SetFocus Private Sub Combo4_KeyPress(KeyAscii As Integer) Combo5.SetFocus Private Sub Combo5_KeyPress(KeyAscii As Integer) Txt3.SetFocus

12 Private Sub Txt3_KeyPress(KeyAscii As Integer) Txt4.SetFocus Private Sub Txt4_KeyPress(KeyAscii As Integer) If (KeyAscii >= 48) And (KeyAscii <= 57) Or (KeyAscii = 46) Or (KeyAscii = 8) Then Else Command2.SetFocus Else MsgBox "ÃкØä éà ¾ÒеÑÇàÅ (0-9)", vbokonly, "á é ൠ͹" KeyAscii = 0 Txt4.SetFocus

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is InputBox( ) Function An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is A = InputBox ( Question or Phrase, Window Title, ) Example1: Integer:

More information

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara 61 LAMPIRAN 61 Listing Program Form 1 ( Barang ) Dim CnSuzuya As ADODB.Connection Dim CommBar As ADODB.Command Dim rsbar As ADODB.Recordset Dim StrSql As String Dim psn As Byte Private Sub Form_Load()

More information

Understanding the MsgBox command in Visual Basic

Understanding the MsgBox command in Visual Basic Understanding the MsgBox command in Visual Basic This VB2008 tutorial explains how to use the MsgBox function in Visual Basic. This also works for VBS MsgBox. The MsgBox function displays a message in

More information

The design and implementation of UML-based students information management system

The design and implementation of UML-based students information management system The design and implementation of UML-based students information management system Abstract Yunli Cheng 1, a, ChuanQin Li 2, b 1 Guangzhou Nanyang Polytechnic, Guangzhou 510925, China 2 Guangzhou Huaxia

More information

AIM To analyze, design and develop code for Online Course Reservation System using Rational Rose software

AIM To analyze, design and develop code for Online Course Reservation System using Rational Rose software Ex. No.1 Date: ONLINE COURSE RESERVATION AIM To analyze, design and develop code for Online Course Reservation System using Rational Rose software PROBLEM STATEMENT As the head of information systems for

More information

Password Protect an Access Database

Password Protect an Access Database Access a Password Protected Microsoft Access Database from within Visual Basic 6 Have you ever wanted to password protect an Access Database that is a Data Store (a repository of Data) used in one of your

More information

Private Sub Command2_Click() End End Sub. Private Sub Command3_Click() frmchangepassword.show End Sub. Private Sub Form_Activate() check_db End Sub

Private Sub Command2_Click() End End Sub. Private Sub Command3_Click() frmchangepassword.show End Sub. Private Sub Form_Activate() check_db End Sub Private Sub Command1_Click() On Error Resume If rs.state = adstateopen Then rs.close rs.open "select * from login where UserName='" & txtusername & "' And Log_Password='" & txtpassword & "'", conn, 1,

More information

LAMPIRAN LIST PROGRAM

LAMPIRAN LIST PROGRAM LAMPIRAN LIST PROGRAM 1. Modules Public conn As New ADODB.Connection Public rstb_pendekatan As ADODB.Recordset Public rstb_solusi As ADODB.Recordset Public rstb_alasan As ADODB.Recordset Public rstb_pilihan

More information

Generated by Foxit PDF Creator Foxit Software For evaluation only. ภาคผนวก ก

Generated by Foxit PDF Creator Foxit Software  For evaluation only. ภาคผนวก ก ภาคผนวก ก โปรแกรม SQL Server โปรแกรม SQL Server เป นโปรแกรมจ ดการฐานข อม ล ท จะการจ ดเก บข อม ลต างๆลงใน ตาราง เพ อช วยในการจ ดเก บข อม ลได ง ายข นและสามารถน าข อม ลข อม ลออกมาได อย างรวดเร ว ข นตอนการต

More information

Visual Basic 6 Lecture 7. The List Box:

Visual Basic 6 Lecture 7. The List Box: The List Box: The function of the List Box is to present a list of items where the user can click and select the items from the list or we can use the List Box control as a simple memory to save data.

More information

LAMPIRAN FORM 1 Universitas Sumatera Universitas Utara

LAMPIRAN FORM 1 Universitas Sumatera Universitas Utara LAMPIRAN FORM 1 Private Sub Text2_KeyPress(KeyAscii As Integer) If KeyAscii = vbkeyreturn Then Set tbladministrator = New ADODB.Recordset With tbladministrator.open "SELECT * FROM Administrator WHERE userid

More information

LISTING PROGRAM. 1. Form Login. Private Sub BATAL_Click() End End Sub

LISTING PROGRAM. 1. Form Login. Private Sub BATAL_Click() End End Sub LISTING PROGRAM 1. Form Login Private Sub BATAL_Click() End Sub Bersih() USERNAME.Text = "" PASSWORD.Text = "" Private Sub Form_Load() Bersih Private Sub OK_Click() Sql = "select*from tbl_login where username='"

More information

22. VB Programming Fundamentals Data Access with Data Objects

22. VB Programming Fundamentals Data Access with Data Objects 22. VB Programming Fundamentals Data Access with Data Objects 22.1 Data Access Object MS Data Access Object (DAO) enables you to use a programming language to access and manipulate data in local or remote

More information

Financial Functions (all with subtypes: Normal, Stairs, Points, Height, Hollow, Colors, Marks, No Border except where indicated):

Financial Functions (all with subtypes: Normal, Stairs, Points, Height, Hollow, Colors, Marks, No Border except where indicated): Financial Charting in TeeChart Pro TeeChart Pro has always been at the cutting edge of Financial Charting and the ActiveX v6 makes this very clear; with three distinct financial series and fourteen dedicated

More information

EMPLOYEE PAYROLL SYSTEM

EMPLOYEE PAYROLL SYSTEM EX.NO:1 DATE: EMPLOYEE PAYROLL SYSTEM AIM: To develop a Employee Payroll System using visual Basic. PROCEDURE: 1. Problem statement Software is to be designed for supporting a computerized employee payroll

More information

Tutorial, Source code, Request Program Visual Basic

Tutorial, Source code, Request Program Visual Basic Tutorial, Source code, Request Program Visual Basic Oleh : Moh. A Azis Membuat Form Data Barang Program Persediaan Barang Form Data Barang digunakan untuk menyimpan data barang dan memberikan info mengenai

More information

LAMPIRAN A LISTING PROGRAM. Universitas Sumatera Utara

LAMPIRAN A LISTING PROGRAM. Universitas Sumatera Utara LAMPIRAN A LISTING PROGRAM LISTING PROGRAM MENU UTAMA Dim T As String Dim i Private Sub Dafsis_Click() Form5.Show Private Sub Dafwai_Click() Form5.Show Private Sub Dasis_Click() Form2.Show Private Sub

More information

Programming Concepts and Skills. Arrays continued and Functions

Programming Concepts and Skills. Arrays continued and Functions Programming Concepts and Skills Arrays continued and Functions Fixed-Size vs. Dynamic Arrays A fixed-size array has a limited number of spots you can place information in. Dim strcdrack(0 to 2) As String

More information

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function:

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Lookup Project frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Help About, in a Message Box lookup.vbp programmed by C.Gribble Page 2 Code for

More information

Please answer questions in the space provided. Question point values are shown in parentheses.

Please answer questions in the space provided. Question point values are shown in parentheses. IS 320 Spring 99 Page 1 Please answer questions in the space provided. Question point values are shown in parentheses. 1. (15) Assume you have the following variable declarations and assignments: Dim A

More information

ONLINE RAILWAY RESERVATION SYSTEM

ONLINE RAILWAY RESERVATION SYSTEM Ex. No: Date: ONLINE RAILWAY RESERVATION SYSTEM AIM: methodologies To develop a software for online railway reservation system project by using software ALGORITHM: Step1: Open a VB project. Step2: Design

More information

The Control Properties

The Control Properties The Control Properties Figure Before writing an event procedure for the control to response to a user's input, you have to set certain properties for the control to determine its appearance and how it

More information

IS 320 Spring 96 Page 1 Exam 1. Please use your own paper to answer the following questions. Point values are shown in parentheses.

IS 320 Spring 96 Page 1 Exam 1. Please use your own paper to answer the following questions. Point values are shown in parentheses. IS 320 Spring 96 Page 1 Please use your own paper to answer the following questions. Point values are shown in parentheses. 1. (10) Consider the following segment of code: If txtansicode.text < "0" Or

More information

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB Visual Programming 1. What is Visual Basic? Visual Basic is a powerful application development toolkit developed by John Kemeny and Thomas Kurtz. It is a Microsoft Windows Programming language. Visual

More information

Remainder Cordial Labeling of Graphs

Remainder Cordial Labeling of Graphs Journal of Algorithms and Computation journal homepage: http://jac.ut.ac.ir Remainder Cordial Labeling of Graphs R. Ponraj 1, K. Annathurai and R. Kala 3 1 Department of Mathematics, Sri Paramakalyani

More information

Programming with visual Basic:

Programming with visual Basic: Programming with visual Basic: 1-Introdution to Visual Basics 2-Forms and Control tools. 3-Project explorer, properties and events. 4-make project, save it and its applications. 5- Files projects and exercises.

More information

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN A : LISTING PROGRAM LAMPIRAN A : LISTING PROGRAM 1. frmmenu.frm Dim CN As Connection Dim rshapus As Recordset Private Sub DfaHasil_Click() Call frmlap.cetak Private Sub Form_Load() Set CN = New ADODB.Connection CN.ConnectionString

More information

PROGRAM 1: SIMPLE CALCULATOR

PROGRAM 1: SIMPLE CALCULATOR PROGRAM 1: SIMPLE CALCULATOR Option Explicit Dim operand1 As Double, operand2 As Double Dim op1 As Double, op2 As Double Dim operator As String Dim cleardisplay As Boolean Private Sub Cmdclear_Click()

More information

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples: VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the

More information

Lecture Using ListBox and ComboBox Controls In Visual Basic 6: list box

Lecture Using ListBox and ComboBox Controls In Visual Basic 6: list box Lecture 10+11+12 7- Using ListBox and ComboBox Controls In 6: list box A list box displays a list of items from which the user can select one or more items. If the number of items exceeds the number that

More information

variables programming statements

variables programming statements 1 VB PROGRAMMERS GUIDE LESSON 1 File: VbGuideL1.doc Date Started: May 24, 2002 Last Update: Dec 27, 2002 ISBN: 0-9730824-9-6 Version: 0.0 INTRODUCTION TO VB PROGRAMMING VB stands for Visual Basic. Visual

More information

Excel & Visual Basic for Applications (VBA)

Excel & Visual Basic for Applications (VBA) Class meeting #18 Monday, Oct. 26 th GEEN 1300 Introduction to Engineering Computing Excel & Visual Basic for Applications (VBA) user interfaces o on-sheet buttons o InputBox and MsgBox functions o userforms

More information

PG-MSR207 manual swipe magnetic card Reader/Writer User s Guide

PG-MSR207 manual swipe magnetic card Reader/Writer User s Guide PG-MSR207 manual swipe magnetic card Reader/Writer User s Guide Ver.7.01 Table of the contents Introduction.....3 Hardware specifications......3 Accessories of PG-MSR207...4 Using the PG-MSR207 Software...4

More information

Definition, Investigation and Analysis

Definition, Investigation and Analysis Definition, Investigation and Analysis Introduction and Nature of the Problem Introduction Pradhan Store is a wholesale store located in Nakhipot, Lalitpur. It has been providing its service since the

More information

Second Year March 2017

Second Year March 2017 Reg. No. :... Code No. 5052 Name :... Second Year March 2017 Time : 2 Hours Cool-off time : 15 Minutes Part III COMPUTER APPLICATION (Commerce) Maximum : 60 Scores General Instructions to Candidates :

More information

151 Mixed bag of HOTS questions from VB 15 A VB program accepts a number in a text box and rounds the number to 0 decimal places. Write the VB code under the button cmdround to achieve this feature. Do

More information

KARTU BIMBINGAN TUGAS AKHIR MAHASISWA PEMBAHASAN PADA ASISTENSI MENGENAI, PADA BAB

KARTU BIMBINGAN TUGAS AKHIR MAHASISWA PEMBAHASAN PADA ASISTENSI MENGENAI, PADA BAB 62 KEMENTERIAN PENDIDIKAN NASIONAL UNIVERSITAS SUMATERA UTARA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM Jl. Bioteknologi No.1 Kampus USU Padang Bulan Medan 20155 Telp. (061) 8211050, 8214290, Fax (061)

More information

MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis.

MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis. Section 1 Multiple Choice MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam 1. Spreadsheets are known as the of business analysis. A. German motor car B. Mexican jumping bean C. Swiss army

More information

SQL INJECTION IN WEB APPLICATIONS By Roshmi Choudhury,Officer (IT) Numaligarh Refinery Limited

SQL INJECTION IN WEB APPLICATIONS By Roshmi Choudhury,Officer (IT) Numaligarh Refinery Limited SQL INJECTION IN WEB APPLICATIONS By Roshmi Choudhury,Officer (IT) Numaligarh Refinery Limited Abstract It may be too late to shut the stable door after the horse has been stolen. Most companies in the

More information

LISTING PROGRAM. Form Splash

LISTING PROGRAM. Form Splash LISTING PROGRAM Form Splash Private Sub Form_Load() lblversion.caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision lblproductname.caption = App.Title lblcopyright.caption = App.LegalCopyright

More information

Rooftop Industries Pvt. Ltd.

Rooftop Industries Pvt. Ltd. Rooftop Industries Pvt. Ltd. Production and inventory management system A level Computing Project Shritesh Bhattarai Little Angels' College 1 Table of Contents Definition, investigation and analysis...

More information

Universitas Sumatera Utara

Universitas Sumatera Utara 43 L A M P I R A N 44 Penulisan Kode Program Aplikasi Game Tetris A. Kode program aplikasi game tetris untuk form1 ( MainF.frm ) adalah sebagai berikut. Dim BANK As Database Dim RS As DAO.Recordset Private

More information

Sample Paper 2010 Class XII Subject Informatic Practices

Sample Paper 2010 Class XII Subject Informatic Practices Sample Paper 2010 Class XII Subject Informatic Practices (Section A) Q1. Answer the following Questions a) Visual Basic is not an Object Oriented Language Justify this statement. 2 b) How is a standard

More information

Leveraging MapInfo ProViewer with Microsoft Visual Basic to provide company-wide access to spatial data resources.

Leveraging MapInfo ProViewer with Microsoft Visual Basic to provide company-wide access to spatial data resources. Leveraging MapInfo ProViewer with Microsoft Visual Basic to provide company-wide access to spatial data resources. Find a way to make data stored in MapInfo Professional tables accessible to anyone in

More information

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x HELP - VB TIPS Load an image to an image box from a certain folder If you use this method, won t work on N:\ To load an image to a image control Image1.Picture = LoadPicture("H:\MyVBfolder\stop.gif") Load

More information

Lab Manual Visual Basic 6.0

Lab Manual Visual Basic 6.0 Lab Manual Visual Basic 6.0 What is Visual Basic? VISUAL BASIC is a high level programming language evolved from the earlier DOS version called BASIC. BASIC means Beginners' All-purpose Symbolic Instruction

More information

IS 320 A/B Spring 97 Page 1 Exam 1

IS 320 A/B Spring 97 Page 1 Exam 1 IS 320 A/B Spring 97 Page 1 Please use the paper supplied by the instructor to answer the questions. Question point values are shown in parentheses. 1. (18) What output is generated by the three MsgBox

More information

'This library is to be used in the context of data management of IoT devices

'This library is to be used in the context of data management of IoT devices Annex A: Full Code '' 'Library created by Pol Sarmiento Lozano @TDdeviceAPI ' 'This library is to be used in the context of data management of IoT devices ' 'This library relates to the URL requests available

More information

Propose a mathematical formula to verify the authenticity of any product of the integers using a scale (9) and verified using computer

Propose a mathematical formula to verify the authenticity of any product of the integers using a scale (9) and verified using computer (9) Propose a mathematical formula to verify the authenticity of any product of the integers using a scale (9) and verified using computer. (9). Abstract This research aims to propose a mathematical formula

More information

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications Friday, January 23, 2004 We are going to continue using the vending machine example to illustrate some more of Access properties. Advanced

More information

District Institute of Education and Training Lawspet, Puducherry.

District Institute of Education and Training Lawspet, Puducherry. District Institute of Education and Training Lawspet, Puducherry. Educational Computing Record work done by with the Register Number. Submitted for the Internal Assessment examination, April / May 2011,

More information

ISA PCI Peripherals Connect Interface ISA. Enhanced Parallel Port EPP

ISA PCI Peripherals Connect Interface ISA. Enhanced Parallel Port EPP ) ( 205 2003 4 ISA PCI Peripherals Connect Interface ISA Enhanced Parallel Port EPP IEEE 1284 1994 Intel Xircom Zenith 4-bit Nibble Mode EPP Enhanced Parallel Port ECP Extended Capabilities Parallel bi-direction

More information

Revisions: jee Initial jee SW Version 1.1 now includes the leave type Other

Revisions: jee Initial jee SW Version 1.1 now includes the leave type Other Memorandum To: From: File John Effland Date: 2005-03-10 Revisions: 2005-03-10 jee Initial 2006-02-24 jee SW Version 1.1 now includes the leave type Other Subject: Leave Calendar Program Architecture and

More information

Control Properties. Example: Program to change background color

Control Properties. Example: Program to change background color Control Properties Before writing an event procedure for the control to response to an event, you have to set certain properties for the control to determine its appearance and how will it work with the

More information

Errors, Warnings, and Issues WARNING #2077

Errors, Warnings, and Issues WARNING #2077 WARNING #2077 Change the default 0 index in the Rows property with the correct one. Description When upgrading an ADO Recordset object to native ADO.Net, the VBUC converts all the Recordset objects to

More information

2-26 Learn Visual Basic 6.0

2-26 Learn Visual Basic 6.0 2-26 Learn Visual Basic 6.0 cmdcompute Click Event: Private Sub cmdcompute_click() Dim Mean As Single Dim StdDev As Single txtinput.setfocus Make sure there are at least two values If NumValues < 2 Then

More information

Technical Bulletin 1002 RFgen 5.1 Perfecting Your Presentation with the PanelList Control

Technical Bulletin 1002 RFgen 5.1 Perfecting Your Presentation with the PanelList Control Technical Bulletin 1002 RFgen 5.1 Perfecting Your Presentation with the PanelList Control Published: April 24, 2018 Release: RFgen 5.1.1 Design View RunTime View Perfecting your application s presentation

More information

Doric Computer Systems International Ltd -

Doric Computer Systems International Ltd  - Doric Computer Systems International Ltd E-mail:- INFO@doric.com Install and Release Notes - June 1999 INFO~ODBC Lite v 2.09 Windows NT * Windows 95 * Windows 98 Contents Documentation 1. Installing the

More information

IFA/QFN VBA Tutorial Notes prepared by Keith Wong

IFA/QFN VBA Tutorial Notes prepared by Keith Wong Chapter 2: Basic Visual Basic programming 2-1: What is Visual Basic IFA/QFN VBA Tutorial Notes prepared by Keith Wong BASIC is an acronym for Beginner's All-purpose Symbolic Instruction Code. It is a type

More information

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice Visual Basic Lab Sheet 4: Non Object-Oriented Programming Practice This lab sheet builds on the basic programming you have done so far, bringing elements of file handling, data structuring and information

More information

Function: function procedures and sub procedures share the same characteristics, with

Function: function procedures and sub procedures share the same characteristics, with Function: function procedures and sub procedures share the same characteristics, with one important difference- function procedures return a value (e.g., give a value back) to the caller, whereas sub procedures

More information

Save and Load Searches in Access VBA

Save and Load Searches in Access VBA Save and Load Searches in Access VBA How to allow your users to load and save form states in Access through VBA to provide cross-session saving and retrieval of search or other information. This article

More information

Simply Access Tips. Issue April 26 th, Welcome to the twelfth edition of Simply Access Tips for 2007.

Simply Access Tips. Issue April 26 th, Welcome to the twelfth edition of Simply Access Tips for 2007. Hi [FirstName], Simply Access Tips Issue 12 2007 April 26 th, 2007 Welcome to the twelfth edition of Simply Access Tips for 2007. Housekeeping as usual is at the end of the Newsletter so, if you need to

More information

NE1R EAST UNIVERSITY, FA-CULTYOF ENGINEERING DEPARTMENT OF COMPUTER ENGINEERING COM400 GRADUATION PROJECT LIBRARY AND BOOKSTORE AND DATABASE

NE1R EAST UNIVERSITY, FA-CULTYOF ENGINEERING DEPARTMENT OF COMPUTER ENGINEERING COM400 GRADUATION PROJECT LIBRARY AND BOOKSTORE AND DATABASE NE1R EAST UNIVERSITY, FA-CULTYOF ENGINEERING DEPARTMENT OF COMPUTER ENGINEERING COM400 GRADUATION PROJECT LIBRARY AND BOOKSTORE AND DATABASE SUBMITTED TO MRS BESiME ERIN SUBMITTED BY IMRAN SOHAIL & BEDRiYE

More information

Visual Basic , ,. Caption Hello, On Off. * + +, -. 1-Arrow, , 2- Cross. - project1.vbp, 4-form1.frm.

Visual Basic , ,. Caption Hello, On Off. * + +, -. 1-Arrow, , 2- Cross. - project1.vbp, 4-form1.frm. Visual Basic 6.0 1.,. Caption Hello, On Off. * + +, -. 1-Arrow, + - 4 +, 2- Cross. - project1.vbp, 4-form1.frm...!"# 2/59 3...

More information

Design of Remote Health Monitoring System Client

Design of Remote Health Monitoring System Client Original Research Article Design of Remote Health Monitoring System Client Hengyong Jiang,Wei Chen,Yutao Sun School of Computer Science and Technology, Shiyan University of Science and Technology, Hubei,

More information

Visual Basic ,

Visual Basic , Visual Basic 6.0..!"# !"# $#%$$"& ( ( 6.0) 2 $, -&, - 1.,. Caption Hello, On O ff. * + +, -. 1-Arrow, + - 4 +, 2- Cross. - project1.vbp, 4-form1.frm. 2/59 !"# $#%$$"& ( ( 6.0) 3 $, -&, - 3/59 !"# $#%$$"&

More information

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY UNESCO-NIGERIA TECHNICAL & VOCATIONAL EDUCATION REVITALISATION PROJECT-PHASE II NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY OOBASIC/VISUAL BASIC PROGRAMMING COURSE CODE: COM 211 YEAR I SEMESTER II PRACTICAL

More information

UnitSales Array Product Number Sales Region

UnitSales Array Product Number Sales Region IS 320 Aut 96 Page 1 1. (10) Assume you have a list box named List1, which has its Multiselect property set to 2 - Extended. Write a click event procedure for this list box that deletes the selected items

More information

A Back-End Link Checker for Your Access Database

A Back-End Link Checker for Your Access Database A Back-End for Your Access Database Published: 30 September 2018 Author: Martin Green Screenshots: Access 2016, Windows 10 For Access Versions: 2007, 2010, 2013, 2016 Working with Split Databases When

More information

Visual Basic Visual Basic

Visual Basic Visual Basic 9-1 9-2 9-1.1 9-1.2 9-1.3 9-2.1 9-2.2 9-2.3 9-3 Visual Basic 9-3.1 Visual Basic 9-3.2 9-4 9-4.1 9-4.2 2 II 9-1 GoTo http://noi.stinfo.net/ xbqj/xbqj_12.htm structured programming 9-1 9-1 a goto b c goto

More information

CMPT 110 MIDTERM OCTOBER 18, 2001

CMPT 110 MIDTERM OCTOBER 18, 2001 CMPT 110 MIDTERM OCTOBER 18, 2001 1 What will be displayed when the command button is clicked? 7% Level of difficulty 7 (out of 10) Assume there is a command button called cmdbutton Assume there is a picturebox

More information

This file contains an excerpt from the character code tables and list of character names for The Unicode Standard, Version 3.0.

This file contains an excerpt from the character code tables and list of character names for The Unicode Standard, Version 3.0. Range: This file contains an excerpt from the character code tables and list of character names for The Unicode Standard, Version.. isclaimer The shapes of the reference glyphs used in these code charts

More information

Chapter 1. Block Diagram. Text .. 1

Chapter 1. Block Diagram. Text .. 1 Chapter 1 ก Visual Basic Scilab ก ก Visual Basic Scilab ก ก (Temporary File) ก ก ก ก ก ก Visual Basic ก (Interface) ก Scilab Text File ก Visual Basic ก ก ก ก Block Diagram ก ก Visual Basic ก Scilab ก.sce

More information

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. List of items

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. List of items List of items ListBox Control Properties List object.list(index) [= string] List1.List(0) List1.List(1) list ItemData list AddItem list NewIndex List1.AddItem "Judy Phelps" List1.ItemData(List1.NewIndex)

More information

Web-based Apps in.net

Web-based Apps in.net Web-based Apps in.net Objectives Real-world applications are typically multi-tier, distributed designs involving many components the web server being perhaps the most important component in today's applications...

More information

LAMPIRAN A: LISTING PROGRAM

LAMPIRAN A: LISTING PROGRAM LAMPIRAN A: LISTING PROGRAM 1. Form Home Private Sub Command1_Click() frmhome.hide frmnavigasi.show Private Sub Command2_Click() End Private Sub Timer1_Timer() If Picture1.Visible = False Then Picture1.Visible

More information

Test # 1 Review. to the line x y 5. y 64x x 3. y ( x 5) 4 x 2. y x2 2 x. Á 3, 4 ˆ 2x 5y 9. x y 2 3 y x 1. Á 6,4ˆ and is perpendicular. x 9. g(t) t 10.

Test # 1 Review. to the line x y 5. y 64x x 3. y ( x 5) 4 x 2. y x2 2 x. Á 3, 4 ˆ 2x 5y 9. x y 2 3 y x 1. Á 6,4ˆ and is perpendicular. x 9. g(t) t 10. Name: Class: Date: ID: A Test # 1 Review Short Answer 1. Find all intercepts: y 64x x 3 2. Find all intercepts: y ( x 5) 4 x 2 3. Test for symmetry with respect to each axis and to the origin. y x2 2 x

More information

FIT 100. o best you can do is start at the beginning: linear search. o It s a bit like 20 questions, but MUCH more specific.

FIT 100. o best you can do is start at the beginning: linear search. o It s a bit like 20 questions, but MUCH more specific. Searching A List: Reiew Topics In Programming Why Algorithms Matter Procedures Collections If there s no order to the list (or the Yellow Pages)... o best you can do is start at the beginning: linear search

More information

AxoNet Software GmbH. Introduction. Using the AxClient components for asanetwork

AxoNet Software GmbH. Introduction. Using the AxClient components for asanetwork Introduction for asanetwork Edition 1.0, 20.11.2001, Copyright, all rights reserved Contents Contents...2 Overview...2 Installation...2 Before you start...3 Building a customer order client...5 Step 1,

More information

Download the files from you will use these files to finish the following exercises.

Download the files from  you will use these files to finish the following exercises. Exercise 6 Download the files from http://www.peter-lo.com/teaching/x4-xt-cdp-0071-a/source6.zip, you will use these files to finish the following exercises. 1. This exercise will guide you how to create

More information

Design and Implementation of Archives Query System Based on B/S Structure Lianfeng Zhao

Design and Implementation of Archives Query System Based on B/S Structure Lianfeng Zhao Applied Mechanics and Materials Online: 2012-12-13 ISSN: 1662-7482, Vols. 241-244, pp 3098-3102 doi:10.4028/www.scientific.net/amm.241-244.3098 2013 Trans Tech Publications, Switzerland Design and Implementation

More information

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION Lesson 1 - Recording Macros Excel 2000: Level 5 (VBA Programming) Student Edition LESSON 1 - RECORDING MACROS... 4 Working with Visual Basic Applications...

More information

Allow local or remote applications to access the functionality in the VisualCron server through an easy to use interface.

Allow local or remote applications to access the functionality in the VisualCron server through an easy to use interface. VisualCron API VisualCron API... 1 Purpose... 2 COM support... 2 VB6 example... 2 VB6 code sample... 2 Architecture... 2 Object model... 3 Methods... 3 Events... 4 Communication... 5 Local... 5 Remote...

More information

International Journal of Advanced Research in Computer Science and Software Engineering

International Journal of Advanced Research in Computer Science and Software Engineering Volume 3, Issue 2, February 2013 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com An Efficient

More information

) $ G}] }O H~U. G yhpgxl. Cong

) $ G}] }O H~U. G yhpgxl. Cong » Þ åî ïî á ë ïý þý ÿ þ ë ú ú F \ Œ Œ Ÿ Ÿ F D D D\ \ F F D F F F D D F D D D F D D D D FD D D D F D D FD F F F F F F F D D F D F F F D D D D F Ÿ Ÿ F D D Œ Ÿ D Ÿ Ÿ FŸ D c ³ ² í ë óô ò ð ¹ í ê ë Œ â ä ã

More information

Lecture 5 C Programming Language

Lecture 5 C Programming Language Lecture 5 C Programming Language Summary of Lecture 5 Pointers Pointers and Arrays Function arguments Dynamic memory allocation Pointers to functions 2D arrays Addresses and Pointers Every object in the

More information

IS 320 A-C Page 1 Spring 99 Exam 2

IS 320 A-C Page 1 Spring 99 Exam 2 IS 320 A-C Page 1 Please use the space provided on the exam for your answers to the following questions. Note that question values are shown in parentheses. 1. (18) Consider the following user interface

More information

Lecture 4 DLLs and Custom Hardware Programming

Lecture 4 DLLs and Custom Hardware Programming Lecture 4 DLLs and Custom Hardware Programming Dynamically Link Libraries (DLL) Generating EXE file involves: (1) Compile source, which generates object/libraries files (.OBJ,.LIB), and (2) Linking object

More information

第 1 部 Controlling AutoCAD LT on Access VBA

第 1 部 Controlling AutoCAD LT on Access VBA 第 1 部 Controlling AutoCAD LT on Access VBA Map Management frm_main.bmp Chapter 1 Land deals Link figure information of AutoCAD LT and Access data base using public land survey map. C h a p t e r 2 R e

More information

3. Can every Do-Loop loop be written as a For-Next loop? Why or why not? 4. Name two types of files that can be opened and used in a VB program.

3. Can every Do-Loop loop be written as a For-Next loop? Why or why not? 4. Name two types of files that can be opened and used in a VB program. CE 311 K Fall 005 Second Exam - Examples Answers at the bottom. 1. What are two categories of flow control structures?. Name three logical operators in Visual Basic (VB). 3. Can every Do-Loop loop be written

More information

2. (16) Salesperson bonuses are paid based on a combination of total unit sales and the number of new accounts according to the following table:

2. (16) Salesperson bonuses are paid based on a combination of total unit sales and the number of new accounts according to the following table: IS 320 Exam 1 page 1 Please use the space provided on this exam to answer the questions. Clearly show your work for possible partial credit. Question point values are shown in parenthses. 1. (16) Given

More information

2Practicals Visual Basic 6.0

2Practicals Visual Basic 6.0 2Practicals Visual Basic 6.0 Practical 1: 1. Navigation of Visual Basic Integrated Development Environment The Visual Basic IDE is made up of a number of components Menu Bar Tool Bar Project Explorer Properties

More information

Fundamentals of Computer Science Laboratory 2 Sequential programs

Fundamentals of Computer Science Laboratory 2 Sequential programs Fundamentals of Computer Science 2010-2011 Laboratory 2 Sequential programs Objetivos: VB Controls: command button (cmd), form (frm, label (lbl), text box (txt) and picture box (pct) VB controls properties:

More information

Pe h-ōe-jī Unicode Correspondence Table

Pe h-ōe-jī Unicode Correspondence Table Pe h-ōe-jī Correspondence Table This document contains the code points and font examples for characters needed to write Pe h-ōe-jī for Taiwanese (Hoklo). Standard latin capital and small letters are not

More information

SolidWorks A Visual Basic for Applications tutorial for SolidWorks users SDC PUBLICATIONS

SolidWorks A Visual Basic for Applications tutorial for SolidWorks users SDC PUBLICATIONS Automating SolidWorks 2004 using Macros A Visual Basic for Applications tutorial for SolidWorks users SDC PUBLICATIONS Schroff Development Corporation www.schroff.com www.schroff-europe.com By Mike Spens

More information

Access VBA programming

Access VBA programming Access VBA programming TUTOR: Andy Sekiewicz MOODLE: http://moodle.city.ac.uk/ WEB: www.staff.city.ac.uk/~csathfc/acvba The DoCmd object The DoCmd object is used to code a lot of the bread and butter operations

More information

Information Hiding In Images Using Randomly Selected Points

Information Hiding In Images Using Randomly Selected Points Republic of Iraq Ministry Of Higher Education And Scientific Research University Of Baghdad College Of Science Department Of Computer Science Information Hiding In Images Using Randomly Selected Points

More information

Agenda. Strings 30/10/2009 INTRODUCTION TO VBA PROGRAMMING. Strings Iterative constructs

Agenda. Strings 30/10/2009 INTRODUCTION TO VBA PROGRAMMING. Strings Iterative constructs INTRODUCTION TO VBA PROGRAMMING LESSON5 dario.bonino@polito.it Agenda Strings Iterative constructs For Next Do Loop Do While Loop Do Loop While Do Until Loop Do Loop Until Strings 1 Strings Variables that

More information